

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>客户管理-客户充值</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/usercp/layui/css/layui.css" media="all">
</head>
<body>

  <div class="layui-form" lay-filter="custom_recharge" id="custom_recharge" style="padding: 20px 0 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">可用余额</label>
      <div class="layui-input-inline">
        <input type="text" name="available_blance" disabled lay-verify="required" autocomplete="off" class="layui-input layui-disabled">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">客户余额</label>
      <div class="layui-input-inline">
        <input type="text" name="blance" disabled lay-verify="required" autocomplete="off" class="layui-input layui-disabled">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">充值金额</label>
      <div class="layui-input-inline">
        <input type="text" name="money" lay-verify="required|number" placeholder="请输入充值金额" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">备注</label>
      <div class="layui-input-block">
        <textarea name="remark" placeholder="请输入备注" class="layui-textarea" style="width: 300px;"></textarea>
      </div>
    </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
    </div>
  </div>

  <script src="/usercp/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '/usercp/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,form = layui.form;

    var row = window.parent.ooob;
    form.val("custom_recharge", {
      "available_blance": {$custom->balance}
      ,"blance": row.balance
      ,"remark": '客户充值'
    })
  })
  </script>
</body>
</html>